import request from '../http.js'

const api = {
	'UserInfo': '/personal/getUserInfo',	// 获取用户信息
	'pogetCode': '/po/requisitionOrder/getCode',	// 获取单据编号
	'pageList': '/erp/purchaseType/pageList', // 获取采购类型
	'officepage': '/system/office/page',	// 获取部门
	'sysUserpage': '/sysUser/user/page', //获取请购人
	'ForVoucher': '/crm/customer/pageForVoucher',	// 获取供应商
	'currencyList': '/erp/currency/pageList',		// 币种
	'warehouseList': '/in/warehouse/pageList',	// 获取仓库
	'invoiceTypeList': '/erp/invoiceType/pageList',	//发票类型
	
	
}

//获取用户信息
export function UserInfo(data){ 
	return request({
		url: api.UserInfo,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//发票类型
export function invoiceTypeList(data){ 
	return request({
		url: api.invoiceTypeList,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//获取仓库
export function warehouseList(data){ 
	return request({
		url: api.warehouseList,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//币种
export function currencyList(data){ 
	return request({
		url: api.currencyList,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//获取供应商
export function ForVoucher(data){ 
	return request({
		url: api.ForVoucher,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//获取单据编号
export function pogetCode(data){ 
	return request({
		url: api.pogetCode,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//获取请购人
export function sysUserpage(data){ 
	return request({
		url: api.sysUserpage,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//获取部门
export function officepage(data){ 
	return request({
		url: api.officepage,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//获取采购类型
export function pageList(data){ 
	return request({
		url: api.pageList,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}











